package com.kfm.wiki.ex;

public class BusinessException extends RuntimeException{

    private BusinessExceptionCode code;

    public BusinessException(BusinessExceptionCode code){
        super(code.getMsg());
        this.code = code;
    }
    @Override
    public synchronized Throwable fillInStackTrace() {
        return this;
    }

    public BusinessExceptionCode getCode() {
        return code;
    }

    public void setCode(BusinessExceptionCode code) {
        this.code = code;
    }
}
